home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / apps / 93 / applic / sdb.c < prev    next >
C/C++ Source or Header  |  1987-01-15  |  531b  |  29 lines

  1. /* SDB - main routine */
  2.  
  3. #include "sdbio.h"
  4.  
  5. /* set the stack size for MWC */
  6. long _stksize = 16384;
  7.  
  8. /* external variables */
  9. extern int dbv_errcode;
  10.  
  11. /* external routines */
  12. extern char *db_ertxt();
  13.  
  14. /* main - the main routine */
  15. main()
  16. {
  17.     printf("SDB version 2.2, by David Betz\n");
  18.     db_sinit();
  19.     db_ifile("sdb.ini");
  20.  
  21.     while (TRUE) {
  22.         db_prompt("SDB> ","\t> ");
  23.         if (!db_parse(NULL)) {
  24.         printf("** error: %s ***\n",db_ertxt(dbv_errcode));
  25.             db_kill();
  26.         }
  27.     }
  28. }
  29.